package com.kuang.service;

import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Service;

@Service
public class UserService {

    //去注册中心拿服务
    @Reference
    private TicketService ticketService;

    public void getTicket(){
        System.out.println("在服务消费中心买到:"+ticketService.getTicket());
    }


}
